achievement_post


语法:

achievement_post(achievement, percent)

参数 描述
achievement The name of the achievement.
percent The percentage of the achievement completed.


返回:

N/A(无返回值)


描述

You can use this function to send your achievements to the chosen leaderboard and achievement service. You send the name of the achievement (this is the name you assigned to it when you set up the account for your app) and the percentage that you have completed towards getting the achievement (0 - None, 100 - Completed).

例如:

if achievement_available() achievement_post("ach_Level1", 100);

The above code checks to see if the chosen leaderboard and achievement service is available and if so it posts an achievement.